package com.ncase.auto.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ncase.common.annotation.Excel;
import com.ncase.common.core.domain.BaseEntity;

/**
 * 接口管理对象 ncase_api
 * 
 * @author zouhuu
 * @date 2025-06-02
 */
public class NcaseApi extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 接口id */
    private Long apiId;

    /** 分组id */
    @Excel(name = "分组id")
    private Long groupId;

    /** 分组名称 */
    @Excel(name = "分组名称")
    private String groupName;

    /** 接口名称 */
    @Excel(name = "接口名称")
    private String apiName;

    /** 接口模板 */
    @Excel(name = "接口模板")
    private String apiTemp;

    /** XMock规则 */
    @Excel(name = "XMock规则")
    private String xmockRule;

    /** TRMock规则 */
    @Excel(name = "TRMock规则")
    private String trmockRule;

    /** TR请求目标 */
    @Excel(name = "TR请求目标")
    private String trTarget;

    /** GW请求目标 */
    @Excel(name = "GW请求目标")
    private String gwTarget;

    /** EOC请求目标 */
    @Excel(name = "EOC请求目标")
    private String eocTarget;

    /** EOS请求目标 */
    @Excel(name = "EOS请求目标")
    private String eosTarget;

    /** 交易模型 */
    @Excel(name = "交易模型")
    private String transactionModel;

    /** 初始化参数 */
    @Excel(name = "初始化参数")
    private String initParam;

    /** 关联参数 */
    @Excel(name = "关联参数")
    private String linkParam;

    /** 扩展信息 */
    @Excel(name = "扩展信息")
    private String extendInfo;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setApiId(Long apiId) 
    {
        this.apiId = apiId;
    }

    public Long getApiId() 
    {
        return apiId;
    }

    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }

    public void setGroupName(String groupName) 
    {
        this.groupName = groupName;
    }

    public String getGroupName() 
    {
        return groupName;
    }

    public void setApiName(String apiName) 
    {
        this.apiName = apiName;
    }

    public String getApiName() 
    {
        return apiName;
    }

    public void setApiTemp(String apiTemp) 
    {
        this.apiTemp = apiTemp;
    }

    public String getApiTemp() 
    {
        return apiTemp;
    }

    public void setXmockRule(String xmockRule) 
    {
        this.xmockRule = xmockRule;
    }

    public String getXmockRule() 
    {
        return xmockRule;
    }

    public void setTrmockRule(String trmockRule) 
    {
        this.trmockRule = trmockRule;
    }

    public String getTrmockRule() 
    {
        return trmockRule;
    }

    public void setTrTarget(String trTarget) 
    {
        this.trTarget = trTarget;
    }

    public String getTrTarget() 
    {
        return trTarget;
    }

    public void setGwTarget(String gwTarget) 
    {
        this.gwTarget = gwTarget;
    }

    public String getGwTarget() 
    {
        return gwTarget;
    }

    public void setEocTarget(String eocTarget) 
    {
        this.eocTarget = eocTarget;
    }

    public String getEocTarget() 
    {
        return eocTarget;
    }

    public void setEosTarget(String eosTarget) 
    {
        this.eosTarget = eosTarget;
    }

    public String getEosTarget() 
    {
        return eosTarget;
    }

    public void setTransactionModel(String transactionModel) 
    {
        this.transactionModel = transactionModel;
    }

    public String getTransactionModel() 
    {
        return transactionModel;
    }

    public void setInitParam(String initParam) 
    {
        this.initParam = initParam;
    }

    public String getInitParam() 
    {
        return initParam;
    }

    public void setLinkParam(String linkParam) 
    {
        this.linkParam = linkParam;
    }

    public String getLinkParam() 
    {
        return linkParam;
    }

    public void setExtendInfo(String extendInfo) 
    {
        this.extendInfo = extendInfo;
    }

    public String getExtendInfo() 
    {
        return extendInfo;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apiId", getApiId())
            .append("groupId", getGroupId())
            .append("groupName", getGroupName())
            .append("apiName", getApiName())
            .append("apiTemp", getApiTemp())
            .append("xmockRule", getXmockRule())
            .append("trmockRule", getTrmockRule())
            .append("trTarget", getTrTarget())
            .append("gwTarget", getGwTarget())
            .append("eocTarget", getEocTarget())
            .append("eosTarget", getEosTarget())
            .append("transactionModel", getTransactionModel())
            .append("initParam", getInitParam())
            .append("linkParam", getLinkParam())
            .append("extendInfo", getExtendInfo())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
